Skip to content

Conversation

@alidandach
Copy link
Contributor

Issue

This PR addresses a StackOverflowError in ReflectionUtils when processing fields with cyclic dependencies during AOT compilation.

Fix

  • Added defensive programming in doWithFields to track visited classes and prevent infinite recursion.

Fixes #34170

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Dec 28, 2024
@sbrannen
Copy link
Member

We addressed this differently in #33950 in 6.2.1.

In light of that, I’m closing this PR.

If you still encounter the issue after 6.2.1, please let us know.

@sbrannen sbrannen closed this Dec 28, 2024
@sbrannen sbrannen added status: declined A suggestion or change that we don't feel we should currently apply type: regression A bug that is also a regression in: core Issues in core modules (aop, beans, core, context, expression) and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Dec 28, 2024
@snicoll snicoll removed type: regression A bug that is also a regression in: core Issues in core modules (aop, beans, core, context, expression) labels Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: declined A suggestion or change that we don't feel we should currently apply

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StackOverflowError in ReflectionUtils during AOT Compilation

4 participants